home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
The X-Philes (2nd Revision)
/
The X-Philes Number 1 (1995).iso
/
xphiles
/
hp48_1
/
drip
< prev
next >
Wrap
Internet Message Format
|
1995-03-31
|
4KB
Path: seq!spell
From: Douglas R. Cannon <dougc@bert.cs.byu.edu>
Subject: v01i006: drip - Animation Program, Part01/01
Newsgroups: comp.sources.hp48
Followup-To: comp.sys.hp48
Approved: spell@seq.uncwil.edu
Submitted-by: Douglas R. Cannon <dougc@bert.cs.byu.edu>
Posting-number: Volume 1, Issue 6
Archive-name: drip/part01
BEGIN_DOC drip.doc
Ok. Here's what happened:
I was bored this morning (7/23/91) My wife was in summer term classes, and
my 6 month old daughter that I was home tending was asleep. So, as a result
this silly animation program was created.
This program is shareware. If you like it, then send $0.06 to the programmer
at 178 Wymount #4A Provo, UT 84604. If I can get just 3 people to register,
then I will have enough money to finance my next project.
The program (fondly called 'DRIP') is a mere 1.8Kbytes and worth even
less. But, if you decide to give it a try, it will create a directory, and
in this directory will be 17 programs! Run setup, and then there will only be
15. Then run DRIP. After you're done, press a key to end. The other stuff in
the directory are graphics objects. You can do whatever you please to this
program (If you've registered your copy, of course) and I hope you enjoy it!!
You will surely notice that the program DRIP is not written elegantly as I
might otherwise have done ( I hate un-elegant code! ) but, of course, this
is an animation, and speed is of the essence! The code is large, but the wait
time is small, as this was the objective.
Douglas R. Cannon
dougc@bert.cs.byu.edu
END_DOC
BYTES: #2AC1h 1980
BEGIN_RPL drip
%%HP: T(3)A(R)F(.);
DIR
SETUP
\<< FAUC ST\->
'FAUC' STO { SETUP
ST\-> } PURGE
\>>
ST\->
\<< \-> S
\<< "" 1 S SIZE
FOR N S N
GET +
NEXT STR\->
\>>
\>>
DRIP
\<< 0 \-> DONE
\<< ERASE {
# 0d # 0d } PVIEW
PICT { # 0d # 14d }
FAUC REPL PICT {
# 0d # 62d } WAT
REPL PICT { # 84d
# 59d }
"DOUG CANNON" 1
\->GROB REPL
DO 1 9
FOR N
PICT { # 22d # 30d
} FSH N GET REPL 2
RAND * N / WAIT
IF KEY
THEN 9
'N' STO DROP 1
'DONE' STO
END
NEXT PICT
{ # 22d # 30d } D
REPL PICT { # 22d
# 33d } D REPL PICT
{ # 22d # 36d } D
REPL PICT { # 22d
# 39d } D REPL PICT
{ # 22d # 42d } D
REPL PICT { # 22d
# 45d } D REPL PICT
{ # 22d # 48d } D
REPL PICT { # 22d
# 51d } D REPL PICT
{ # 19d # 54d } H1
REPL 8000 RAND *
.005 BEEP PICT {
# 17d # 57d } H2
REPL PICT { # 15d
# 58d } H3 REPL
PICT { # 14d # 59d
} H4 REPL PICT {
# 13d # 58d } H5
REPL PICT { # 12d
# 58d } H6 REPL
PICT { # 11d # 58d
} H7 REPL PICT {
# 10d # 59d } H8
REPL PICT { # 10d
# 60d } H9 REPL
PICT { # 8d # 61d }
H10 REPL
UNTIL KEY
DONE OR
END
IF DONE NOT
THEN DROP
END
\>>
\>>
FAUC {
"GROB 27 16 00C0C00000EFF10070EFF100F1CCC000F30C0000FFFFF700FFFFFF10FFF"
"FFF30FFFFFF30FFFFFF70F300CF70F1000F7070000E7000000E7000000C7000000C70"
}
WAT
GROB 51 2 CFFFFFFFFFF700FFFFFFFFFFFF70
D
GROB 5 9 00000040E0F1F1F1E0
FSH { GROB 5 1 C0
GROB 5 1 E0
GROB 5 2 E1C0
GROB 5 3 E1E1C0
GROB 5 4 E1F1F1E0
GROB 5 5 E0F1F1F1E0
GROB 5 6 E0E0F1F1F1E0
GROB 5 7 C0E0F1F1F1F1E0
GROB 5 8 80C0C0E0F1F1F1E0
}
H1
GROB 11 9 000000000000020007008F008F00BF607770
H2
GROB 15 6 000008000C102E32FEB7FFF7
H3
GROB 19 4 000000002000E07830FBFE70
H4
GROB 21 3 E000E0F308F1E1E0F0
H5
GROB 23 5 600003F00087600003000000FF3EF7
H6
GROB 25 6 60000C00F0000E1060000C0000000000FF10FF10FF7CFF10
H7
GROB 27 6 0000000060000030F000087060000030FFF8FF70FFFFFF70
H8
GROB 29 4 00000000600000C0F00000E1FFFBFFF1
H9
GROB 29 3 0000000030000081FFFFFFF1
H10
GROB 31 1 00000000
END
END_RPL
-----------------------------------------
Oh, BTW, if you think you really need to send me $0.06, then don't.